package com.example.order.mapper;

import com.example.order.model.OrderInfo;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface OrderMapper {

    public int add(OrderInfo orderInfo);

    //根据uid拿到当前用户的所有订单
    public List<OrderInfo> getList(int uid);

    //获得所有订单信息
    public List<OrderInfo> getAllList();

    //管理员修改当前订单的状态
    public int up(int oid , int status);
}
